package service;

import dao.PetDao;
import entity.Pet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("petService")
public class PetServiceImpl implements PetService{
    @Autowired
    PetDao petDao;

    public void setPetDao(PetDao petDao) {
        this.petDao = petDao;
    }

    @Override
    public boolean save(Pet pet) {
        return petDao.insert(pet)>0;
    }
}
